// 把所有的接口在这里统一注册并暴露出去
import {
  login,
  sendSms,
  userInfo,
  getUserProfile,
  editUserName,
  updateUserPhoto
} from './user'
import {
  getChannel,
  recommendedChannel,
  getAllChannels,
  addUserChannels,
  delUserChannels
} from './home'
import {
  getArticles,
  focusUser,
  unfollowUser,
  collectArticle,
  cancelCollect,
  giveLike,
  cancelLike
} from './article'
import { getSuggestion, getSearchRes } from './search'
import {
  getCommon,
  likeComments,
  cancelLikeComments,
  addComments
} from './common'
// 登录接口的Api
export const loginApi = login
// 发送验证码的Api
export const sendSmsApi = sendSms
// 获取用户信息的Api
export const userInfoApi = userInfo
// 获取频道的Api
export const getChannelApi = getChannel
// 获取频道推荐新闻
export const recommendedChannelApi = recommendedChannel
// 获取全部频道的Api
export const getAllChannelsApi = getAllChannels
// 批量修改用户频道列表的Api
export const addUserChannelsApi = addUserChannels
// 删除指定用户频道的Api
export const delUserChannelsApi = delUserChannels
// 获取联想建议的Api
export const getSuggestionApi = getSuggestion
// 获取搜索结果的Api
export const getSearchResApi = getSearchRes
// 获取新闻文章详情的Api
export const getArticlesApi = getArticles
// 关注用户的Api
export const focusUserApi = focusUser
// 取消关注用户
export const unfollowUserApi = unfollowUser
// 收藏文章
export const collectArticleApi = collectArticle
// 取消收藏
export const cancelCollectApi = cancelCollect
// 对文章点赞
export const giveLikeApi = giveLike
// 取消点赞
export const cancelLikeApi = cancelLike
// 获取评论的Api
export const getCommonApi = getCommon
// 对评论点赞的Api
export const likeCommentsApi = likeComments
// 取消对评论点赞的Api
export const cancelLikeCommentsApi = cancelLikeComments
// 添加评论的Api
export const addCommentsApi = addComments
// 获取用户个人资料的Api
export const getUserProfileApi = getUserProfile
// 编辑用户资料的Api
export const editUserNameApi = editUserName
// 编辑用户照片资料的Api
export const updateUserPhotoApi = updateUserPhoto
